package osm_to_speedsigns;

import java.util.StringTokenizer;

public class SpeedSign {
	
	private int wayID;
	private int speedValue;
	private int firstNode;
	private int secondNode;
	private String comment;
	  
	  public SpeedSign(String line) {
		StringTokenizer st = new StringTokenizer(line,",");
		this.wayID = Integer.parseInt(st.nextToken());
		this.speedValue = Integer.parseInt(st.nextToken());
		this.firstNode = Integer.parseInt(st.nextToken());
		this.secondNode = Integer.parseInt(st.nextToken());
		this.comment = st.nextToken();
//			System.out.println(mainLoop + " : " + speed + " " + startNode + " " + endNode);
	}

	  
	  
	  public int getwayID() {
		    return this.wayID;
		  }

	  public int getspeedValue() {
		    return this.speedValue;
		  }

	  public int getfirstNode() {
		    return this.firstNode;
		  }
	  public int getsecondNode() {
		    return this.secondNode;
	  }
	  public String getcomment() {
		    return this.comment;
	  }
}


